package webEquipeRechercheGwt.server.webEquipeRechercheServices;

import java.util.Collection;

import com.google.gwt.user.server.rpc.RemoteServiceServlet;

import webEquipeRechercheGwt.client.entityMirror.SeminarMirror;
import webEquipeRechercheGwt.client.services.SeminarService;
import webEquipeRechercheGwt.server.rmiManager.RmiManager;

public class SeminarServiceImpl extends RemoteServiceServlet implements SeminarService {

	/**
	 * 
	 */
	private static final long serialVersionUID = -7319138701358396384L;

	@Override
	public Collection<SeminarMirror> getSeminars() {
		RmiManager rmi = new RmiManager();
		return rmi.getWebEquipeRechercheFacade().getSeminarsMirrors();
	}

	@Override
	public boolean createSeminar(SeminarMirror s) {
		RmiManager rmi = new RmiManager();
		return rmi.getWebEquipeRechercheFacade().createSeminar(s);
	}

}
